package org.example.wikwok.controller;

import org.example.wikwok.service.NotificationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

//处理消息通知的HTTP请求，如查看未读通知。
@RestController
public class NotificationController {
    @Autowired
    private NotificationService notificationService;
    //查看未读通知
    public void getUnreadNotifications(String userId) {
        //...
        notificationService.queryNotificationList(userId);
    }
}
